Use the appropriate include for libcloudproviders
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 17 Jun 2020 19:49:57 +0000 (20:49 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 17 Jun 2020 19:49:57 +0000 (20:49 +0100)
Libcloudproviders has a single header entry point, so we shouldn't
include a sub-header.

Additionally, the include path provided by the pkg-config file is:

  -I${includedir}/cloudproviders

So the include directive should be:

  #include <cloudproviders.h>

The fact that it worked until now was an accident caused by the blanket:

  -I${includedir}

we get for free; it broke the build when using libcloudproviders as a
subproject.

gtk/gtksidebarrow.c

index 0a2749a12242b045b3da1e24f4eacb771502e48f..fbd90b66bb082777b8fdcb4931ca507cdf2d1790 100644 (file)
@@ -30,7 +30,7 @@
 #include "gtkspinner.h"
 
 #ifdef HAVE_CLOUDPROVIDERS
-#include <cloudproviders/cloudprovidersaccount.h>
+#include <cloudproviders.h>
 #endif
 
 struct _GtkSidebarRow